<template>
  <div id="app">
    <GuidePage />
    <router-view />
  </div>
</template>
<script>
import GuidePage from './views/GuidePage.vue'
export default {
  name: 'app',
  components: {
    GuidePage
  },
  watch: {
    // 监听路由变化（注意：在单独的子组件里这个是不起作用的）
    // $route(newVal, oldVal) {
    //   console.log(newVal, oldVal);
    // },
  }
}
</script>

<style>
* {
  padding: 0;
  margin: 0;
}
#app {
  display: flex;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
}
#app > div:nth-child(2) {
  flex: 1;
  padding: 30px;
}
p {
  margin: 10px 0;
}
</style>
